import vue from 'vue'

//地图相关包和数据
import echarts from 'echarts';
import shine from 'echarts/theme/shine.js';
// import infographic from 'echarts/theme/infographic.js';
// import roma from 'echarts/theme/roma.js';

import dark from 'echarts/theme/dark.js';
// import china from 'echarts/map/json/china.json';
// import china from 'echarts/map/js/china.js';
import yunnan from "echarts/map/json/province/yunnan.json";
// import yunnan from "echarts/map/js/province/yunnan.js";
import kunming from '../AreaJsonFile/City/530100.json';
import qujing from "../AreaJsonFile/City/530300.json";
import yuxi from "../AreaJsonFile/City/530400.json";
import baoshan from "../AreaJsonFile/City/530500.json";
import zhaotong from "../AreaJsonFile/City/530600.json";
import lijiang from "../AreaJsonFile/City/530700.json";
import puer from "../AreaJsonFile/City/530800.json";
import lincang from "../AreaJsonFile/City/530900.json";
import chuxiong from "../AreaJsonFile/City/532300.json";
import honghe from "../AreaJsonFile/City/532500.json";
import wenshan from "../AreaJsonFile/City/532600.json";
import banna from "../AreaJsonFile/City/532800.json";
import dali from "../AreaJsonFile/City/532900.json";
import dehong from "../AreaJsonFile/City/533100.json";
import nujiang from "../AreaJsonFile/City/533300.json";
import diqing from "../AreaJsonFile/City/533400.json";

echarts.registerMap("530000000000", yunnan);
echarts.registerMap("530100000000", kunming);
echarts.registerMap("530300000000", qujing);
echarts.registerMap("530400000000", yuxi);
echarts.registerMap("530500000000", baoshan);
echarts.registerMap("530600000000", zhaotong);
echarts.registerMap("530700000000", lijiang);
echarts.registerMap("530800000000", puer);
echarts.registerMap("530900000000", lincang);
echarts.registerMap("532300000000", chuxiong);
echarts.registerMap("532500000000", honghe);
echarts.registerMap("532600000000", wenshan);
echarts.registerMap("532800000000", banna);
echarts.registerMap("532900000000", dali);
echarts.registerMap("533100000000", dehong);
echarts.registerMap("533300000000", nujiang);
echarts.registerMap("533400000000", diqing);

global.myEcharts=echarts;//配置全局变量myEcharts
export default myEcharts;